#pragma once
#include "GameApplication.h"
#include "TerrainAppFrameListener.h"
#include "TerrainAppUI.h"
#include <Terrain/OgreTerrain.h>
#include <Terrain/OgreTerrainGroup.h>
class TerrainApp : public GameApplication
{
public:
	TerrainApp(void);
	~TerrainApp(void);
	virtual void createScene();
	virtual void createFrameListener();
protected:
	TerrainAppFrameListener* m_pFrameListener;
	TerrainAppUI* m_pUI;
	Ogre::TerrainGlobalOptions* mTerrainGlobals;
	Ogre::TerrainGroup* mTerrainGroup;
	bool mTerrainsImported;

	void defineTerrain(long x, long y);
	void initBlendMaps(Ogre::Terrain* terrain);
	void configureTerrainDefaults(Ogre::Light* light);

};
